package com.scau.clothes.stock.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.scau.clothes.core.core.entity.BaseEntity;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@TableName("clothes_norm")
public class ClothesNorm extends BaseEntity implements Serializable {
    /**
     * 库存id
     */
    @TableId(value = "clothes_norm_id",type = IdType.AUTO)
    private Long clothesNormId;

    /**
     * 服装id
     */
    private String clothesNumber;

    /**
     * 规格编号
     */
    private String normSn;

    /**
     * 价格
     */
    private BigDecimal price;

    /**
     * 数量
     */
    private Integer quantity;

    /**
     * 销售额
     */
    private Integer sales;

    /**
     * 逻辑删除
     */
    private Integer isDelete;

    /**
     * 服装类
     */
    @TableField(exist = false)
    private Clothes clothes;

    /**
     * 规格类
     */
    @TableField(exist = false)
    private Norm norm;


}
